/**
 * Created by FDG282 on 2017/9/27.
 */
$.extend({
    layerShow :function (infotitle,info) {
        var infoLayer = '<div id="btn-info" class="hide"><h2 class="h2"></h2><p></p> <button type="button" class="btn">确认<i class="icon arrow_icon"></i></button></div>';
        $('body').append(infoLayer);
        var oLayer = $("#btn-info");
        oLayer.removeClass('hide');
        $('html').addClass('noscroll');
        layer.open({
            type: 1,
            title: false,
            closeBtn:1,
            shadeClose: false,
            skin: '#btn-info',
            content: oLayer
        });
        oLayer.children('h2').text(infotitle);
        oLayer.children('p').text(info);
        oLayer.find('.btn').click(function(){
            layer.closeAll();
            oLayer.addClass("hide");
            $('html').removeClass('noscroll');
        });
        $('.layui-layer-ico').on('click',function(){
            $('html').removeClass('noscroll');
            $('#btn-info').addClass('hide');//FDG416 2018/02/26 添加隐藏事件
        })
   }
});